package cn.edu.neusoft.yuejian12.Service;

import java.util.List;

import cn.edu.neusoft.yuejian12.JavaBean.Club;
import cn.edu.neusoft.yuejian12.JavaBean.Master;
import cn.edu.neusoft.yuejian12.JavaBean.MasterInfo;
import cn.edu.neusoft.yuejian12.JavaBean.Ques;
import cn.edu.neusoft.yuejian12.JavaBean.Video;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by 木子李 on 2017/10/16.
 */

public interface MasterService {
    @GET("lists/mod/master")
    Call<List<Master>> getAllmaster();


    /**
     * 问大师列表
     * http://172.24.10.175/workout/api.php/lists/mod/masterfaq/master_id/2
     * */
    @POST("lists/mod/masterfaq/")
    Call<List<Ques>> getAskList(@Query("master_id") String master_id);
    /**
     * 大师详情列表
     * */
    @POST("get/mod/master/")
    Call<MasterInfo> getTeaInfo(@Query("id") String id);
    /**
     * 大师视频列表
     * http://172.24.10.175/workout/api.php/get/mod/master/related/1/id/1/map/mvideo
     * */
    @POST("get/mod/master/related/1/")
    Call<Video> getVideoList(@Query("id") String id, @Query("map") String mvideo);

    //获取大师的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getClubState(
            @Path("fan_id") String fan_id,
            @Path("userid") int userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );

    //关注大师
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> changeClubState(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );

}
